﻿using System.ComponentModel.DataAnnotations;

namespace RuoVea.OmiApi.SystemApp.Service.Dto;

/// <summary>
/// 
/// </summary>
public class OrgInput : BaseIdInput
{
    /// <summary>
    /// 名称
    /// </summary>
    public string Name { get; set; }

    /// <summary>
    /// 编码
    /// </summary>
    public string Code { get; set; }

    ///// <summary>
    ///// 机构类型
    ///// </summary>
    //public string Type { get; set; }
}

/// <summary>
/// 
/// </summary>
public class AddOrgInput : SysOrganization
{
    /// <summary>
    /// 名称
    /// </summary>
    [Required(ErrorMessage = "机构名称不能为空")]
    public override string Name { get; set; }

    ///// <summary>
    ///// 机构类型
    ///// </summary>
    //[Dict("org_type", ErrorMessage = "机构类型不能合法", AllowNullValue = true, AllowEmptyStrings = true)]
    //public override string Type { get; set; }
}

/// <summary>
/// 
/// </summary>
public class UpdateOrgInput : AddOrgInput
{
}

/// <summary>
/// 
/// </summary>
public class DeleteOrgInput : BaseIdInput
{
}